const state = () => ({ indexEntryInfo: [], shopList: [] })

const mutations = {
  setFoodClassify(state, val) {
    state.indexEntryInfo = val
  },
  setShopList(state, val) {
    state.shopList = val
  }
}

const actions = {
  setFoodClassify: ({ commit }, indexEntryInfo) => {
    commit('setFoodClassify', indexEntryInfo)
  },
  setShopList: ({ commit }, shopList) => {
    commit('setShopList', shopList)
  }
}

export default { namespaced: true, state, mutations, actions }
